#region Using Statements
using System;
using System.Collections.Generic;
using System.Text;
using Dsp;
using NDesk.Options;
#endregion

namespace Dsp.Test
{
    class Program
    {

        static void Main(string[] args)
        {
            bool Flag_Help   = false;
            bool Flag_Matlab = false;

            // Option Set
            OptionSet p = new OptionSet()
              .Add("h|help",     delegate(string v) { if (v != null) Flag_Help   = true; })
              .Add("m|matlab",   delegate(string v) { if (v != null) Flag_Matlab = true; });

            // Let's check args
            List<string> extra = p.Parse(args);
            
            //if (extra.Count != 2)
            //{
            //    ErrorFlag = true;
            //    ErrorString = "Incorrect number of mandatory parameters";
            //    return;
            //}


            //Console.WriteLine ("Specified Program Options:");
            //Console.WriteLine ("\t         file: {0}", opt.file);
            //Console.WriteLine ("\t         help: {0}", opt.quiet);
            //Console.WriteLine ("\t         test: {0}", opt.test);

            //Console.WriteLine ("Remaining Program Options:");
            //foreach (string s in opt.RemainingArguments)
            //{
            //    Console.WriteLine("\t{0}", s);
            //}

            // Test_RNG.Test();
            DateTime t0; 
            DateTime t1;
            TimeSpan ts;

            t0 = DateTime.Now;
            /**/if (Flag_Matlab) Test_MatFileWriter.Test();
            
            t1 = DateTime.Now;
            ts = t1 - t0;

            Console.WriteLine("Execution time was {0} seconds", ts.Seconds);
        }
    }
}
